package com.wowudi.model.power;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "t_user")
public class User implements Serializable {
    /**
     * 用户ID
     */
    @TableId(value = "u_id", type = IdType.AUTO)
    private Integer uId;

    /**
     * 登录账号
     */
    @TableField(value = "u_account")
    private String uAccount;

    /**
     * 登录密码
     */
    @TableField(value = "u_password")
    private String uPassword;

    /**
     * 真实姓名
     */
    @TableField(value = "u_name")
    private String uName;

    /**
     * 性别
     */
    @TableField(value = "u_sex")
    private String uSex;

    /**
     * 生日
     */
    @TableField(value = "u_birthday")
    private Date uBirthday;

    /**
     * 学历
     */
    @TableField(value = "u_education")
    private String uEducation;

    /**
     * 头像
     */
    @TableField(value = "u_head_portrait")
    private String uHeadPortrait;

    /**
     * 是否在职（1-在职 | 0-离职）
     */
    @TableField(value = "u_state")
    private String uState;

    /**
     * 创建时间
     */
    @TableField(value = "create_time",fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 修改时间
     */
    @TableField(value = "update_time",fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    private static final long serialVersionUID = 1L;
}
